home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / ui / demo.menu < prev    next >
Encoding:
Text File  |  2000-11-22  |  5.0 KB  |  257 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ Fight \\
  5.  
  6.   menuDef {
  7.         name "demo"
  8.         visible 0
  9.         fullscreen 1
  10.         rect 0 0 640 480
  11.         background "menuback_a"
  12.         focusColor 1 .67 0 1
  13.         style 1
  14.         border 1
  15.     onOpen { setitemcolor fadebox backcolor 0 0 0 1 ; 
  16.     playlooped "music/fla_mp03.wav" ;
  17.     fadeout fadebox ; uiScript LoadDemos }
  18.     onEsc { close demo ; open main }
  19.  
  20.         
  21.  
  22.  
  23.  
  24.  
  25.  
  26. // LEVEL SELECTION BAR    //
  27.  
  28.  
  29.   itemDef {
  30.       name levelbar
  31.       style 2
  32.     text "TEAM ARENA DEMOS"
  33.       rect 0 16 640 40 
  34.     textstyle 6
  35.       textscale 0.416
  36.       textalign 1                // center
  37.       textalignx 320        // x alignment point for text
  38.                             // use it to offset left/right text from the edge 
  39.                             // or to center the text on a different point
  40.       textaligny 27 
  41.     forecolor 1 1 1 1       
  42.       style 2
  43.       border 4
  44.       bordercolor 0.5 0.5 0.5 0.5
  45.       bordersize 2
  46.       backcolor 0 0 .75 0.5
  47.       visible 1 
  48.       decoration 
  49.     }
  50.  
  51.     itemDef {
  52.           name teamarenaimage
  53.     style 3
  54.     background "ui/assets/teamarenaimage.tga"
  55.     rect 0 80 220 115 
  56.           visible 1 
  57.         }
  58.  
  59.  
  60. itemDef {
  61.     name mappreview
  62.           style 5
  63.     cinematic "mpintro.roq"
  64.     rect 20 195 200 150
  65.     backcolor 1 1 1 .25
  66.     border 1
  67.     bordersize 1
  68.     bordercolor .5 .5 .5 1
  69.     decoration
  70.     visible 1
  71.     }
  72.  
  73.  
  74. itemDef {
  75.     name demolist
  76.     rect 240 100 360 300
  77.     type ITEM_TYPE_LISTBOX
  78.     style WINDOW_STYLE_FILLED
  79.     elementwidth 120
  80.     elementheight 20
  81.     textscale .25
  82.     elementtype LISTBOX_TEXT
  83.     feeder FEEDER_DEMOS
  84.     textalign 3
  85.     textaligny 14
  86.     border 1
  87.     bordercolor .5 .5 .5 .5
  88.     forecolor 1 1 1 1
  89.     backcolor 0 0 .5 .25
  90.     outlinecolor .1 .1 .7 .5
  91.     visible 1
  92.     mouseEnter { fadein message_demos ; setitemcolor demolist bordercolor .7 0 0 1 } 
  93.     mouseExit { fadeout message_demos ; setitemcolor demolist bordercolor .5 .5 .5 .5 } 
  94.       }
  95.  
  96.  
  97.  
  98.  
  99. // BACK BAR    //
  100.  
  101.  
  102.   itemDef {
  103.       name gotobar
  104.       style 2
  105.       rect 0 430 640 30 
  106.       textscale 0.4
  107.       textalign 0                // center
  108.       textalignx 60        // x alignment point for text
  109.                             // use it to offset left/right text from the edge 
  110.                             // or to center the text on a different point
  111.       textaligny 21        
  112.       style 2
  113.       border 4
  114.       bordercolor 0.5 0.5 0.5 0.5
  115.       bordersize 2
  116.       backcolor 0 0 .75 0.5
  117.       visible 1 
  118.       mouseEnter { setcolor backcolor .75 0 0 .5 }
  119.       mouseExit { setcolor backcolor 0 0 .75 .5 }
  120.       decoration 
  121.     }
  122.  
  123.     itemDef {
  124.           name back
  125.     style 3
  126.           background "ui/assets/backarrow.tga"
  127.     rect 16 424 50 50 
  128.           visible 1 
  129.           action { close demo ; open main }
  130.     mouseEnter { hide back ; show back_alt ; fadein message_back }
  131.         }
  132.  
  133. itemDef {
  134.           name back_alt
  135.           style WINDOW_STYLE_SHADER
  136.     background "ui/assets/backarrow_alt.tga"
  137.     rect 14 422 54 54 
  138.           backcolor 0 0 0 0
  139.           forecolor 1 1 1 1
  140.           visible 0
  141.     type ITEM_TYPE_BUTTON
  142.           mouseExit { hide back_alt ; show back ; fadeout message_back }      
  143.          action { close demo ; open main }      
  144.     }
  145.  
  146.  
  147.  
  148.  
  149. itemDef {
  150.           name accept
  151.           style 3    
  152.          rect 574 424 50 50 
  153.          background "ui/assets/forwardarrow.tga"
  154.           backcolor 0 0 0 0
  155.           forecolor 1 1 1 1
  156.           visible 1 
  157.     mouseEnter { show lightning ; hide accept ; show accept_alt ; show message_accept ; playlooped "sound/misc/loop_electricity_05.wav" }
  158.           action { close demo  }
  159.       }
  160.  
  161. itemDef {
  162.           name accept_alt
  163.           style 3    
  164.          rect 572 422 54 54 
  165.          background "ui/assets/forwardarrow_alt.tga"
  166.           backcolor 0 0 0 0
  167.           forecolor 1 1 1 1
  168.           visible 0
  169.     type ITEM_TYPE_BUTTON   
  170.           action { close demo ; uiScript RunDemo }
  171.     mouseExit { hide lightning ; hide accept_alt ; show accept ; hide message_accept ; playlooped "music/fla_mp03.wav" }     
  172.       }
  173.  
  174.  itemDef {
  175.           name lightning
  176.           style 3
  177.     background lightningkc
  178.           rect 44 385 246 128     
  179.           visible 0 
  180.           decoration 
  181.         }
  182. itemDef {
  183.           name lightning
  184.           style 3
  185.     background lightningkc
  186.           rect 345 385 246 128     
  187.           visible 0 
  188.           decoration 
  189.         }
  190.  
  191.  
  192. //    MESSAGES    //
  193.  
  194. itemDef {
  195.     name message_back
  196.     style 0 
  197.     rect 320 430 128 30
  198.     textstyle 1
  199.     textalign 1
  200.     textalignx 0
  201.     textaligny 25
  202.     textscale .4
  203.     text "Exit to Main Menu"
  204.     forecolor 1 1 1 1
  205.     decoration 
  206.     visible 0
  207.     }
  208.  
  209. itemDef {
  210.     name message_accept
  211.     style 0 
  212.     rect 320 430 128 30
  213.     textalign 1
  214.     textstyle 1
  215.     textalignx 0
  216.     textaligny 25
  217.     textscale .4
  218.     text "View Demo"
  219.     forecolor 1 1 1 1
  220.     decoration 
  221.     visible 0
  222.     }
  223. itemDef {
  224.     name message_demos
  225.     style 0 
  226.     rect 320 430 128 30
  227.     textalign 1
  228.     textstyle 1
  229.     textalignx 0
  230.     textaligny 25
  231.     textscale .4
  232.     text "Select Recorded Game To View"
  233.     forecolor 1 1 1 1
  234.     decoration 
  235.     visible 0
  236.     }
  237.  
  238. itemDef {
  239.           name fadebox
  240.           style WINDOW_STYLE_FILLED
  241.      background "ui/assets/fadebox.tga"
  242.     forecolor 0 0 0 1
  243.     backcolor 0 0 0 1
  244.     rect 0 0 640 480
  245.           visible 1 
  246.     decoration
  247.         }
  248.  
  249.  
  250.  
  251. }
  252.  
  253.  
  254. }
  255.  
  256. }
  257. }